<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
</head>
<body>
  <div id="app">
   
  </div>
  <script src="./vue.js"></script>
  <script src="./axios.js"></script>
  <script>
    /* 
    http://rap2api.taobao.org/app/mock/273079/api/v1/getArt
    传参数
    id:1
    */
    const vm = new Vue({
      el: '#app',
      data: {
        films: []
      },
      created() {
        this.fetchData()
      },
      methods:{
        fetchData(){
          axios.post('http://rap2api.taobao.org/app/mock/273079/api/v1/getArt',{
            id:1
          }).then(res=>{
            console.log(res)
           
          })
        }
      }
    })
  </script>
</body>
</html>